package com.rla.service;

import com.rla.domain.MallOrderDetail;
import com.rla.domain.vo.MallOrderDetailVo;
import com.rla.domain.bo.MallOrderDetailBo;
import com.rla.common.core.page.TableDataInfo;
import com.rla.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订单明细商品Service接口
 *
 * @author rla
 * @date 2025-08-08
 */
public interface IMallOrderDetailService {

    /**
     * 查询订单明细商品
     */
    MallOrderDetailVo queryById(String id);

    /**
     * 查询订单明细商品列表
     */
    TableDataInfo<MallOrderDetailVo> queryPageList(MallOrderDetailBo bo, PageQuery pageQuery);

    /**
     * 查询订单明细商品列表
     */
    List<MallOrderDetailVo> queryList(MallOrderDetailBo bo);

    /**
     * 新增订单明细商品
     */
    Boolean insertByBo(MallOrderDetailBo bo);

    /**
     * 修改订单明细商品
     */
    Boolean updateByBo(MallOrderDetailBo bo);

    /**
     * 校验并批量删除订单明细商品信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
